<?php

class test extends Controller {

	function setVars()
	{
		$this->tpl['title'] = "Test";
		$this->tpl['head'] = '';
	}

	function test()
	{
		parent::Controller();
		$this->setVars();
	}

	function index()
	{
        //$a = 'est';
	    $this->load->model('nested_sets_model');
        $this->load->model('data_model','data');
        
        $this->tpl['body'] = $this->data->getDataSelect(5);

        //$this->fun->printa($p);

        $this->load->view('layout/blank', $this->tpl);
    }
	
	function sess()
	{
        $sess = $this->session->userdata();
        $this->fun->printa($sess);
        echo $this->session->flashdata('flashid');
        echo $this->session->flashdata('flashname');
        
    }
	
}
?>